//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.hustcad.plm.pdm.iba.model.dto;

import io.swagger.annotations.ApiParam;
import lombok.AllArgsConstructor;
import org.springframework.context.annotation.Primary;

import java.math.BigInteger;

@Primary
@AllArgsConstructor
public class TyplmObjOidAndLogicalDTO {
    @ApiParam("对象oid")
    private BigInteger oid;
    @ApiParam("对象的逻辑标识符")
    private String logicalIdentifier;

    public TyplmObjOidAndLogicalDTO() {
    }

    public BigInteger getOid() {
        return this.oid;
    }

    public String getLogicalIdentifier() {
        return this.logicalIdentifier;
    }

    public TyplmObjOidAndLogicalDTO setOid( BigInteger oid) {
        this.oid = oid;
        return this;
    }

    public TyplmObjOidAndLogicalDTO setLogicalIdentifier( String logicalIdentifier) {
        this.logicalIdentifier = logicalIdentifier;
        return this;
    }

    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof TyplmObjOidAndLogicalDTO)) {
            return false;
        } else {
            TyplmObjOidAndLogicalDTO other = (TyplmObjOidAndLogicalDTO)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                Object this$oid = this.getOid();
                Object other$oid = other.getOid();
                if (this$oid == null) {
                    if (other$oid != null) {
                        return false;
                    }
                } else if (!this$oid.equals(other$oid)) {
                    return false;
                }

                Object this$logicalIdentifier = this.getLogicalIdentifier();
                Object other$logicalIdentifier = other.getLogicalIdentifier();
                if (this$logicalIdentifier == null) {
                    if (other$logicalIdentifier != null) {
                        return false;
                    }
                } else if (!this$logicalIdentifier.equals(other$logicalIdentifier)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(final Object other) {
        return other instanceof TyplmObjOidAndLogicalDTO;
    }

    public int hashCode() {
        int result = 1;
        Object $oid = this.getOid();
        result = result * 59 + ($oid == null ? 43 : $oid.hashCode());
        Object $logicalIdentifier = this.getLogicalIdentifier();
        result = result * 59 + ($logicalIdentifier == null ? 43 : $logicalIdentifier.hashCode());
        return result;
    }

    public String toString() {
        return "TyplmObjOidAndLogicalDTO(oid=" + this.getOid() + ", logicalIdentifier=" + this.getLogicalIdentifier() + ")";
    }
}
